# Maintainer: Norbert Pfeiler <norbert.pfeiler+aur ät gmail.com>

_realname=cmake-doc-qt
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=3.21
pkgrel=1
pkgdesc="CMake documentation in Qt Help format"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
license=('CCPL:cc-by')
url='https://www.cmake.org/documentation/'
# rename to include version of each release
# (prevents accidentally using the file of an older version)
source=("CMake-${pkgver}.qch::https://www.cmake.org/cmake/help/v${pkgver}/CMake.qch")
sha256sums=('b8f942c9f41f7ab79132350f8a6487eee2519a298befa7311203e83f83abe8db')

package() {
  mkdir -p "${pkgdir}${MINGW_PREFIX}/share/qt5/doc"
  cp "${srcdir}/CMake-${pkgver}.qch" "${pkgdir}${MINGW_PREFIX}/share/qt5/doc"
}
